import React from 'react';

const ENV = process.env.NODE_ENV;

export const defaultConfig = {
    uploadTokenURI:
    ENV === 'production' ? 'http://rms.zbj.com/resource' : 'http://rms.test.zbjdev.com/resource',
};

export const ConfigContext = React.createContext(
    defaultConfig, // 默认值
);

export const ConfigConsumer = ConfigContext.Consumer;
